import request from "@/axios/request";
import url from "@/axios/url";
const { mesUrl, adminUrl } = url();
/**
 *  @description 获取供应商列表
 */
export function supplierList(params) {
  return request({
    url: `${mesUrl}sys/web/api/mdm`,
    method: 'post',
    data:params
  })
}

//获取供应商详情
export function mdmInfo(params) {
  return request({
    url: `${mesUrl}sys/web/api/mdm/info/${params}`,
    method: 'get',
  })
}
//获取物料连级列表
export function materialBaseOptions(params) {
  return request({
    url: `${mesUrl}mesTmMaterialBase/materialBaseOptions`,
    method: 'get',
    params
  })
}
/// 供应商修改接口
export function mdmU(params) {
  return request({
    url: `${mesUrl}sys/web/api/mdm/u`,
    method: 'post',
    data:params
  })
}
